c64b3b65a0eecb0e054196ad3e31d12781f9d619,src/main/java/org/socketio/netty/pipeline/FlashPolicyHandler.java,FlashPolicyHandler,decode,#ChannelHandlerContext#ByteBuf#List#,48

Before Change


				}

				// Send flash policy file and close connection
				ByteBuf buf = ctx.alloc().buffer();
				buf.writeBytes(policyResponseBuffer);
				ChannelFuture f = ctx.writeAndFlush(buf);
				f.addListener(ChannelFutureListener.CLOSE);
				log.debug("Sent flash policy file to channel: {}", ctx.channel());

After Change


                    }

                    // Send flash policy file and close connection
                    ByteBuf response = PipelineUtils.copiedBuffer(ctx.alloc(), policyResponse);
                    ChannelFuture f = ctx.writeAndFlush(response);
                    f.addListener(ChannelFutureListener.CLOSE);
                    log.debug("Sent flash policy file to channel: {}", ctx.channel());